package me.bulb.conditional;

import java.util.Collection;

/**
 * @author lijinting01
 *
 */
public class CollectionNotContainsCondition implements Condition<Collection<?>> {

	/**
	 * 即将被用于测量的对象
	 */
	private Object element;

	/**
	 * @param element
	 */
	public CollectionNotContainsCondition(Object element) {
		super();
		this.element = element;
	}

	@Override
	public boolean apply(Collection<?> e) {
		return !e.contains(element);
	}

}
